package dev.alm.wanxdemo.config;

import dev.langchain4j.community.model.dashscope.WanxImageModel;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class LLMConfig {

    @Value("${llm.api.key}")
    private String apiKey;

    @Value("${llm.base.url}")
    private String baseUrl;

    @Value("${llm.model.name}")
    private String modelName;

    @Bean
    public WanxImageModel WanxImageModel() {
        return WanxImageModel.builder()
                .apiKey(apiKey)
//                .baseUrl(baseUrl)
                .modelName(modelName)
                .build();
    }

}
